package com.haoyeteng.sxbd.modular.business.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.haoyeteng.sxbd.modular.business.dao.BillMapper;
import com.haoyeteng.sxbd.modular.business.model.Bill;
import com.haoyeteng.sxbd.modular.business.service.IBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 发票表 服务实现类
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-05-31
 */
@Service
public class BillServiceImpl extends ServiceImpl<BillMapper, Bill> implements IBillService {
	@Autowired
	private BillMapper billMapper;

	@Override
	public List<Map<String, Object>> selectBillList(Page<Bill> page, Integer billType, Integer billState,
			String orderId, String startTime, String endTime) {
		return billMapper.selectBillList(page, billType, billState, orderId, startTime, endTime);
	}

	@Override
	public List<Map<String, Object>> selectBillVoList(Map<String, Object> params) {
		return billMapper.selectBillVoList(params);
	}

	@Override
	public Map<String, Object> selectBillReview(Integer billId) {
		return billMapper.selectBillReview(billId);
	}

	@Override
	public List<Map<String, Object>> selectMyBillList(Page<Bill> page, String billNo, String orderId, Integer authId) {
		return billMapper.selectMyBillList(page, billNo, orderId, authId);
	}

}
